/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package beans;

import java.beans.*;
import java.io.Serializable;
import java.sql.SQLException;
import traitements.GererLivre;

/**
 *
 * @author CDI215
 */
public class Article implements Serializable {

    private Livre livre;
    private int qty;
    private int id;

    public Article() {
    }

    public Livre getLivre() {
        return livre;
    }

    public void setLivre(int id) throws ClassNotFoundException, SQLException {
        GererLivre tmp = new GererLivre();
        this.livre = tmp.afficherLivre(id);
    }

    public int getQty() {
        return qty;
    }

    public void setQty(int qty) {
        this.qty = qty;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
